<?php 
include_once 'connection/connection_database.php';
include_once 'app/model/page/process.php';
include_once 'app/model/tags/process.php';
include_once 'app/model/contact/process.php';
$contact = new Contacts();
$pages = new Pages();
$tags = new Tags();
$pageNew = $pages->FillPageNew();
$findAll = $tags->FindAll();
$fillAllContact = $contact->FillAll();

?>
<div id="footer1">
    <ul id="mycarousel" class="jcarousel-skin-tango">
        <?php while($rows = mysql_fetch_array($pageNew)) : ?>
            <li>
                <div class="ZoomIn">
                    <a href="<?php echo $rows["page_link"].".html" ?>" title="<?php echo $rows["page_title"] ?>"><img src="<?php echo $rows["page_image"] ?>" width="90" height="75" alt="<?php echo $rows["page_title"] ?>" title="<?php echo $rows["page_title"] ?>"/></a>
                    <p class="hidden">
                        <?php echo $rows["page_title"] ?>
                    </p>
                </div><!--End .ZoomIn-->
            </li>
            <li>
                <div class="note_image">
                    <h2>
                        <a href="<?php echo $rows["page_link"].".html" ?>" title="<?php echo $rows["page_title"] ?>"><?php echo $rows["page_title"] ?></a>
                    </h2>
                </div><!--End .note_image-->
            </li>
        <?php endwhile; ?>
    </ul> 
    <div id="menu-footer">
        <ul>
            <li>
                <a href="<?php echo $url["home"] ?>/index.html" title="Trang chủ">Trang chủ | </a>
            </li>
            <li>
                <a href="<?php echo $url["home"] ?>/rss" title="Entries rss">Entries rss | </a>
            </li>
            <li>
                <a href="<?php echo $url["home"] ?>/danh-sach-cau-hoi.html" title="Tư vấn doanh nghiệp">Tư vấn doanh nghiệp | </a>
            </li>
            <li>
                <a href="http://thanhlapcongtybravolaw.blogspot.com" title="Blog Bravolaw" target="_blank">Blog | </a>
            </li>
            <li>
                <a href="<?php echo $url["home"] ?>/sitemap.php" title="Site map Bravolaw">Site map | </a>
            </li>
            <li>
                <a href="<?php echo $url["home"] ?>/lien-he.html" title="Liên hệ Bravolaw">Liên hệ | </a>
            </li>
            <li>
                <a href="<?php echo $url["home"] ?>/rss" title="Rss Bravolaw"><img src="images/rss.png" align="middle"/></a>
            </li>
            <li class="clear"></li>
        </ul>                           
    </div><!--End #menu-footer--> 
    <div id="tags">
        <!--Đặt phần tags ở đây-->
        <p>&copy; 2013 <?php if (date('Y') != 2013) echo " - " . date('Y'); ?> 
            <?php 
                $count = 0;
                while($rowTags = mysql_fetch_array($findAll)) :  
                    $count++;
                    $counts = mysql_num_rows($findAll);
            ?>
            <a href="<?php echo $url["home"] . "/" ?><?php echo $rowTags["tag_link"] . ".html" ?>" title="<?php echo $rowTags["tag_name"] ?>"><?php echo $rowTags["tag_name"] ?></a> <?php if($count != $counts) : ?> | <?php endif; ?>
            <?php endwhile; ?>
        </p>
    </div><!--End #tags-->
</div><!--End #footer1-->
<div class="contact">
    <h3 class="strong">
        Liên hệ công ty TNHH tư vấn BRAVO
    </h3>
    <div class="details_contact">     
		<?php while($rowContact = mysql_fetch_array($fillAllContact)) : ?>
        <div class="info_contact">
        <span class="city"><?php echo $rowContact["contact_city"] ?></span>
        <p>
            ĐC: <?php echo $rowContact["contact_address"] ?><br />
            Tel: <?php echo $rowContact["contact_phone"] ?><br />
            Fax: <?php echo $rowContact["contact_fax"] ?><br />
            Hotline: <?php echo $rowContact["contact_telephone"] ?><br />
            Email: <a href="mailto:<?php echo $rowContact["contact_email"] ?>"><?php echo $rowContact["contact_email"] ?></a>
        </p>
    	</div><!--End .info_contact-->
    	<?php endwhile; ?>
    	<div class="clear"></div> 
    </div><!-- End .details_contact-->                
</div><!--End .contact-->